#ifndef _TCP_CLIENT_H_H_H
#define _TCP_CLIENT_H_H_H

#include <event2/buffer.h>
#include <event2/bufferevent.h>
#include <event2/event.h>
#include <event2/thread.h>

typedef struct {
    struct evbuffer *evbuf;
} ev_info_t, *ev_info_ptr;

class TcpClient
{
public:
    TcpClient();
    ~TcpClient();

public:
    void start_client(const char *host, const int port);
    /*void stop_client();*/

protected:
    static void read_cb(struct bufferevent *bev, void *ctx);
    static void event_cb(struct bufferevent *bev, short events, void *ptr);

private:
    bool m_stop;
};

#endif // _TCP_CLIENT_H_H_H
